package com.geek.image.config;

import com.geek.image.handler.ImageSotre;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "application.img")
public class ImageStoreProperties {
    private Provider[] providers;

    @Data
    class Provider {
        private String code;
        private Class<ImageSotre> imageSotreClass;
    }
}
